import dayjs from 'dayjs'
export const formatDate = (time, flag = '-') => {
  return dayjs(time).format(`YYYY${flag}MM${flag}DD`)
}
export function fn(value, flag = '') {
  value = value.toString()
  return value.charAt(0).toUpperCase() + value.slice(1) + flag
}
export function foo(str, flag = true) {
  return 'heihei' + str + (flag ? '!' : '?')
}
